﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DisinfectClassRoom
{
    //调用者类，负责调用命令执行请求
    class Invoker
    {
        public Command _command;

        public Invoker(Command command)
        {
            this._command = command;
        }

        public void ExecuteCommand()
        {
            _command.Execute();
        }
        public void ExecuteCommand(string name)
        {
            _command.Execute(name);
        }
    }
}
